home *** CD-ROM | disk | FTP | other *** search
- Path: news1.is.net!news
- From: Mark VanTassel <mvantassel@teambca.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Watcom C++ pecularities
- Date: Tue, 12 Mar 1996 08:10:38 -0500
- Organization: Barfield, Cauthen and Associates
- Message-ID: <314577CE.1FCD@teambca.com>
- References: <64cnnJdipZB@nana.franken.de>
- NNTP-Posting-Host: dynamic12.is.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I)
-
- Wolfgang Thomas wrote:
- >
- > 3.) How can a class be exported within a DLL? The documentation only
- > states that for a function an underscore has to be added. But what
- > is the naming convention for member functions?
- >
-
- The names get "mangled" in a complicated way... (BTW, even non-members get mangled unless you
- declare then with <extern "C">)... under MSVC++, you can put _export in front of each member
- function in the class declaration, and the DLL will contain all the member functions - and, if
- you include the H file in your EXE's code, the mangled names will match and it will all magically
- work without needing to worry about the mangling at all).
-